package com.lyf.util;

import java.util.Map;

public class Pager {

	private int nowPageNum;
	private int totalCount;
	
	private Map<Integer,String[]> map;
	
	public Pager(){}
	
	public Pager(int nowPageNum,int totalCount,Map<Integer,String[]> map){
		this.totalCount = totalCount;
		this.nowPageNum = nowPageNum;
		this.map = map;
	}
	
	
	
	
	public int getNowPageNum() {
		return nowPageNum;
	}

	public void setNowPageNum(int nowPageNum) {
		if(nowPageNum < 0){
			nowPageNum = 0;
		}else if(getTotalCount() < nowPageNum){
			nowPageNum = getTotalCount();
		}
		this.nowPageNum = nowPageNum;
	}


	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public Map<Integer, String[]> getMap() {
		return map;
	}
	public void setMap(Map<Integer, String[]> map) {
		this.map = map;
	}
	
	
}

